package com.quicks.beauty.core.vo;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

public class UserOrderVO {

    private String id;

    private String productName;

    private String exTime;

    private String imageUrl;

    private int states;

    private String status;

    private int num;

    private int points;

    private String appointTime;

    private String expressCompany;

    private String expressCode;

    private int kinds;

    private int kinds2;

    private int totals;

    private String minipic;

    private Date ate;

    private String subId;
    private BigDecimal money;
    private Integer tradeState;
    private BigDecimal prodMoney;
    private String showStates;

    public String getShowStates() {
        return showStates;
    }

    public UserOrderVO setShowStates(String showStates) {
        this.showStates = showStates;
        return this;
    }

    public BigDecimal getProdMoney() {
        return prodMoney;
    }

    public UserOrderVO setProdMoney(BigDecimal prodMoney) {
        this.prodMoney = prodMoney;
        return this;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public UserOrderVO setMoney(BigDecimal money) {
        this.money = money;
        return this;
    }

    public Integer getTradeState() {
        return tradeState;
    }

    public UserOrderVO setTradeState(Integer tradeState) {
        this.tradeState = tradeState;
        return this;
    }

    public String getSubId() {
        return subId;
    }

    public UserOrderVO setSubId(String subId) {
        this.subId = subId;
        return this;
    }

    public Date getAte() {
        return ate;
    }

    public UserOrderVO setAte(Date ate) {
        this.ate = ate;
        return this;
    }

    public String getMinipic() {
        return minipic;
    }

    public UserOrderVO setMinipic(String minipic) {
        this.minipic = minipic;
        return this;
    }

    public int getTotals() {
        return totals;
    }

    public UserOrderVO setTotals(int totals) {
        this.totals = totals;
        return this;
    }

    public int getKinds2() {
        return kinds2;
    }

    public UserOrderVO setKinds2(int kinds2) {
        this.kinds2 = kinds2;
        return this;
    }

    public int getKinds() {
        return kinds;
    }

    public UserOrderVO setKinds(int kinds) {
        this.kinds = kinds;
        return this;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getExTime() {
        return exTime;
    }

    public void setExTime(String exTime) {
        this.exTime = exTime;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public int getStates() {
        return states;
    }

    public void setStates(int states) {
        this.states = states;
    }

    public String getStatus() {
        return status;
    }

    public UserOrderVO setStatus(String status) {
        this.status = status;
        return this;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public String getAppointTime() {
        int kinds = getKinds();
        if(kinds==0){
            SimpleDateFormat ofPattern = new SimpleDateFormat("HH:mm");
            Date ate = getAte();
            if(ate==null){
                appointTime = appointTime+"--21:00";
            }else {
                String end = ofPattern.format(getAte());
                appointTime = appointTime+"--"+end;
            }
        }
        return appointTime;
    }

    public void setAppointTime(String appointTime) {
        this.appointTime = appointTime;
    }

    public String getExpressCompany() {
        return expressCompany;
    }

    public void setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany;
    }

    public String getExpressCode() {
        return expressCode;
    }

    public void setExpressCode(String expressCode) {
        this.expressCode = expressCode;
    }
}
